<taglib name="SQL"/>
<!DOCTYPE html>
<html >
	<head>
<include file="Public:headinc" />	
		
<link href="<?php echo MY_CDN; ?>/css/guestbook.css" rel="stylesheet" />
<link href="<?php echo MY_CDN; ?>/css/comment.css" rel="stylesheet" />
<include file="Public:pagestyle" />	
	</head>
	<body>
<!-- navigation -->
<include file="Public:nav" />
<!-- // navigation -->
		
<!-- header -->
<include file="Public:header" />
<!-- // header -->
		
<!-- category -->
<include file="Public:category" />
<!-- category -->
		
	<!-- container -->
	<div class="y-bigBlankBar"></div>
	<div class="y-wrapper990">
		<div class="y-leftContainer y-pullLeft">
			<h2>留言 Guestbook</h2>
			<div class="y-guestbook-content">
				<ul class="y-items">
<SQL:sql sql="select count(*) c,nickname,website,content,avatar from t_guestbook where pid=0 and tongguo=1 group by email order by c desc limit 0,30"></SQL:sql>					
<foreach name="data" item="val">			
<li>
	<a target="_blank" href="/go.php?url={$val['website']}">
		<strong>+{$val['c']}</strong>
		<img src="{:y_gravatar($val['email'])}"/>
		<em>{$val['nickname']}</em><br />						
	</a>
</li>
</foreach>					
				</ul>
			</div>
			
			<!-- 评论 -->
			<div class="y-blankBar"></div>
			<div id="commentList">
				{:W('GuestbookList')}
			</div>
			<!-- 评论表单 -->
			<div class="y-blankBar"></div>
			<div class="y-form">
				<div>
					<form action="" name="f1" id="f1" method="post">
						<div><input type="text" name="nickname" id="nickname" class="input-xlarge y-author" maxlength="12">(* 昵称)</div>
						<div><input type="text" name="email" id="email" class="input-xlarge y-email">(* 邮箱 不可见)<input type="checkbox" id="avatar" checked="checked"/><a href="http://en.gravatar.com/" target="_blank">使用我的Gravatar通用头像</a></div>
						<div><input type="text" name="website" id="website" class="input-xlarge y-website">(网址以 http:// 开头)</div>
						<div>Advertisement</div>
						<div>advertisement content</div>
						<div class="y-formTextarea">
							<div class="y-formFace" id="y-formFace"></div>
							<div class="y-formText">
								<textarea name="content" id="content" rows="4" maxlength="200"></textarea><br />
								<strong id="replyInfo"></strong>
							</div>
						</div>
						<div>
							<table border="0" width="100%" align="center">
								<tr>
									<td align="left"><input type="checkbox" name="notifyme" id="notifyme">有人回复时邮件通知我</td>
									<td align="right">
										<input type="hidden" value="0" id="pid"/>	
										<input type="button" value="提交" id="ySubmitBtn" class="y-btn y-btn-orange" onclick="postData()"/>	
									</td>
								</tr>
							</table>
						</div>
					</form>
				</div>
			</div>
			<script type="text/javascript" src="<?php echo MY_CDN; ?>/js/commentform.js"></script>
			<!-- // 评论 -->
			
		</div>
		
		<div class="y-rightContainer y-pullRight">
<include file="Public:rightArticleList"/>
		</div>
		<div class="y-clear"></div>
	</div>
	<!-- // container -->
		
<!-- footer -->
<include file="Public:footer" />
<!-- // footer -->
<script src="<?php echo MY_CDN; ?>/js/guestbook.js"></script>
	</body>
</html>